package com.YxyBackMange.Mapper.web;

import com.YxyBackMange.Entity.Ware.WareGoodsInfo;
import com.YxyBackMange.Entity.Ware.WareGoodsQuery;
import org.mybatis.spring.annotation.MapperScan;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * Created by Administrator on 2017/12/5.
 */
@MapperScan
public interface WebGoodsMapper extends Mapper<WareGoodsInfo> {

    /**
     * 查询所有商品列表
     * @return
     */
    public List<WareGoodsInfo> findAllGoodsInfo();

    /**
     * 指定条件查询
     * @param goodsQuery
     * @return
     */
    public List<WareGoodsInfo> findGoodsByKey(WareGoodsQuery goodsQuery);
    public WareGoodsInfo findGoodsDetails(Integer id);
}
